package com.homedo.odin.solution.model.request.mng;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * Created by liyi on 2018/5/23.
 */
@ApiModel(description = "白名单导入请求")
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class MngUserSafeImportReq extends BaseRequest {

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    @Min(value = 1L)
    private Long userId;

    /**
     * 用户账号
     */
    @ApiModelProperty("用户账号")
    @NotNull(message = "用户账号不能为空")
    private String userName;

    /**
     * 操作人
     */
    @ApiModelProperty("操作人")
    @NotNull(message = "操作人不能为空")
    private String operator;

    /**
     * url地址
     */
    @ApiModelProperty("资源url地址")
    @NotNull(message = "资源url地址不能为空")
    private String url;

}
